package cn.sumpu.app.guoguojie.biz;

import javax.servlet.http.HttpServletRequest;

import cn.sumpu.app.guoguojie.domain.Mail;
import cn.sumpu.app.guoguojie.domain.Member;
import cn.sumpu.app.guoguojie.exception.AppBusinessException;
import cn.sumpu.app.guoguojie.util.PageModel;

public interface MailBiz {

	public void sendEmail(String basePath, Member member,String title, String emailContent)
			throws AppBusinessException;
	
	public void sendTestEmail(Mail mail) throws AppBusinessException;
	
	public void saveEmailTask(Mail mail) throws AppBusinessException;
	
	public void delEmailTask(String mailId) throws AppBusinessException;
	
	public void cancelEmailTask(String mailId) throws AppBusinessException;
	
	public void enableEmailTask(String mailId) throws AppBusinessException;
	
	public Mail getMailById(String id)throws AppBusinessException;
	
	public String uploadFile(HttpServletRequest request);
	
	public String delFile(String directoryPath,String fileName);
	
	public PageModel getMailList(Integer page, Integer pageSize,String subject)throws AppBusinessException;
	
	public PageModel getMailLogList(Integer page, Integer pageSize,String mail,String nickname,String state)throws AppBusinessException;
	
	public  void timePostEmail();
	
	
}
